package me.whf.dao;

import me.whf.model.Account;

public interface AccountDAO {
	public boolean isExisted(String accountID);
	public boolean createAccount(Account account);
	
	public boolean deposit(String accountID, String password, double money);
	public boolean withdraw(String accountID, String password, double money);
	
	public double query(String accountID, String password);
	public double query(String identity, String accountID, String password);
	
	public boolean transfer(String accountID, String identity, String password, String username, String receiverAccountID, String receiverUsername, double money);
	
	public boolean changePassword(String identity, String accountID, String oldPassword, String password);
	public boolean destory(String identity, String accountID, String password);
	
	public boolean addEnterpriseOperator(String accountID, String enterpriseIdentity, String ownerPassword, String operatorPassword);
	
	public boolean canWithdraw(String accountID, String password, double money);
	
	public void loan(String accountID);
	public void refund(String accountID);
	public void dailySettlement();
	public void monthSettlement();
	public boolean loanFrozenCheck(String accountID);
	public void unFrozen(String accountID);
}
